import request from '@/utils/request'

export function fetchCarouselList(query) {
  return request({
    url: '/backend/carousel/list',
    method: 'get',
    params: query
  })
}

export function fetchCreateCarousel(data) {
  return request({
    url: '/backend/carousel/create',
    method: 'post',
    data: data
  })
}

export function fetchUpdateCarousel(data) {
  return request({
    url: '/backend/carousel/update',
    method: 'post',
    data: data
  })
}

export function fetchDeleteCarousel(id) {
  return request({
    url: '/backend/carousel/delete',
    method: 'post',
    data: {
      id: id
    }
  })
}
